package com.zc.finkDemo.mapper;

import com.zc.finkDemo.entities.RuleInfo;

import java.sql.SQLException;

public class RuleMapper {

    public static RuleInfo getRule(String key) throws SQLException {
        //获取连接查询数据库
//        Connection connection = DruidConnectionPool.getInstance().getConnection();
//        Statement statement = connection.createStatement();
//          发起SQL查询
        String sql = "SELECT * FROM rule_table";
//        ResultSet resultSet = statement.executeQuery(sql);

        //封装成RuleInfo
        return new RuleInfo();
    }

}

